function makeDisplayContent(dataSource, prefix, suffix) {
    var displayContent = prefix + "<ul>";
    for (var item in dataSource) {
			var linkContent = '<a href="' + dataSource[item] + '" target="_blank">' + item + '</a>';
			var listItemContent = '<li>' + linkContent + '</li>';
			displayContent = displayContent + listItemContent;
    }
    displayContent = displayContent + "</ul>" + suffix;
		//console.info(displayContent);
		return displayContent;
}

function displaySection(shouldDisplay, inDebugMode, dataSource, prefix, suffix, visibleForMobileDevice) {
    console.info("displaySection visibleForMobileDevice=" + visibleForMobileDevice);
	if (shouldDisplay && inDebugMode) {
    	if (window.location.host == 'droidyue.com') {
            shouldDisplay = false;
        }
    }
    
    if (shouldDisplay) {
		if (dataSource) {
				var content = makeDisplayContent(dataSource, prefix, suffix);
				document.write(content);
		}
	}
}


